package Adapter.NewAdapter;

import java.util.concurrent.Callable;

public class RunableAdapter implements Runnable{

    public Callable<Long>callable;

    public RunableAdapter(Callable<Long>callable)
    {
        this.callable=callable;
    }

    @Override
    public void run() {
        try {
            callable.call();
        }
        catch (Exception e)
        {
            System.out.println(e);
        }
    }
}
